#ifndef __CORE_STDIO_H__
#define __CORE_STDIO_H__

/**
 *  core/stdio.h
 *  funkce ze standardni knihovny C, zejmena kvuli kompatibilite
 */

#include <core/filesys/fat12.h>

#define stdin   (0)
#define stdout  (1)
#define stderr  (1)

FILE far *_fopen  (char far *filename, char far *mode);
void far *_fread  (char far *buffer, int size, int n, FILE far *stream);
char      _fgetc  (FILE far *stream);
void far *_fgets  (char far *buffer, int count, FILE far *stream);
void      _fwrite (char far *buffer, int size, int n, FILE far *stream);
int       _fseek  (FILE far *stream, int seek, int whence);
void      _fputs  (char far *buffer, FILE far *stream);
void      _fputc  (char ch, FILE far *stream);
void      _fclose (FILE far *stream);

#include <source/core/stdio.c>

#endif
